package com.aaa.ssm.dao;

import com.aaa.ssm.entity.Menu;
import com.aaa.ssm.entity.Scheduling;
import com.aaa.ssm.util.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SchedulingDao {
    /**
     * 查询所有
     * @param scheduling
     * @return
     */
    List<Scheduling> queryByParam(Scheduling scheduling);

    /**
     * 通过Id查找
     * @param gtid
     * @return
     */
    Scheduling queryById(Integer gtid);

    /**
     * 添加
     * @param scheduling
     * @return
     */
    int add(Scheduling scheduling);

    /**
     * 更新
     * @param scheduling
     * @return
     */
    int update(Scheduling scheduling);

    /**
     * 删除
     * @param gtid
     * @return
     */
    int delete(Integer gtid);

}
